﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TDT.Land.Models.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace TDT.Land.Models
{
    /// <summary>
    /// Viết model theo từng màn hình giao diện ở đây . Lớp này nên kế thừa 1 số field chuẩn ở baseModel
    /// </summary>
    public class MyModel : BaseModel
    {
    }

    public class LogOnModel
    {
        [Required]
        [Display(Name = "User name")]
        public string UserName { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [Display(Name = "Password")]
        public string Password { get; set; }

        [Display(Name = "Remember me?")]
        public bool RememberMe { get; set; }


        public class FieldName
        {
            public static string UserName = "UserName";
            public static string Password = "Password";
            public static string RememberMe = "RememberMe";
        } 

    }

}
